package com.pe1n.yangtaopai.bean;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by My on 2016/11/23.
 */

public class SubsData {
        /**
         * id : 36
         * c_name : 卸妆
         */

        @SerializedName("id")
        private String id;
        @SerializedName("c_name")
        private String cName;

        public static SubsData objectFromData(String str) {

            return new Gson().fromJson(str, SubsData.class);
        }

        public static List<SubsData> arraySubsDataFromData(String str) {

            Type listType = new TypeToken<ArrayList<SubsData>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCName() {
            return cName;
        }

        public void setCName(String cName) {
            this.cName = cName;
        }
    }

